<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title th:text="${title}">资讯详情</title>
    <link rel="stylesheet" th:href="@{/css/style.css}">
</head>
<body>
    <div th:replace="~{layout/base :: nav}"></div>
    <main class="container mt-4 mb-4">
        <h2 th:text="${title}"></h2>
        <div th:utext="${#strings.replace(content, '\n', '<br>')}"></div>
        <a href="/" class="btn btn-secondary mt-3">返回首页</a>
    </main>
</body>
</html> 